/**
 * There are <a href="https://github.com/thinkgem/jeesite">JeeSite</a> code generation
 */
package com.boxin.ims.modules.jiujiudevice.dao;

import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Component;

import com.thinkgem.jeesite.common.persistence.BaseDao;
import com.thinkgem.jeesite.common.persistence.BaseDaoImpl;
import com.boxin.ims.modules.jiujiudevice.entity.JiuFreeTime;

/**
 * 设备免费配置DAO接口
 * @author sxh
 * @version 2018-11-24
 */
public interface JiuFreeTimeDao extends JiuFreeTimeDaoCustom, CrudRepository<JiuFreeTime, Long> {

	@Modifying
	@Query("delete from  JiuFreeTime   where id = ?1")
	public int deleteById(Long id);
	
}

/**
 * DAO自定义接口
 * @author sxh
 */
interface JiuFreeTimeDaoCustom extends BaseDao<JiuFreeTime> {

}

/**
 * DAO自定义接口实现
 * @author sxh
 */
@Component
class JiuFreeTimeDaoImpl extends BaseDaoImpl<JiuFreeTime> implements JiuFreeTimeDaoCustom {

}
